Skip to content

ReactiveCollectionViewSource class

Attributes: [DebuggerDisplay("{Data}")]

Defined in

Namespace: ReactiveUI.Reactive Assembly: ReactiveUI.Reactive.dll Full name: ReactiveUI.Reactive.ReactiveCollectionViewSource<T> Modifiers: public

Summary

View source

        ReactiveCollectionViewSource is a Collection View Source that is
        connected to a Read Only List that automatically updates the View based
        on the contents of the list. The collection changes are buffered and
        View items are animated in and out as items are added.
        

Applies to

net10.0-ios26.0, net10.0-maccatalyst26.0, net10.0-tvos26.0

Class hierarchy
classDiagram
class ReactiveCollectionViewSource~T~
class UICollectionViewSource
UICollectionViewSource <|-- ReactiveCollectionViewSource~T~
class IReactiveNotifyPropertyChanged~ReactiveCollectionViewSource~TSource~~ {
    <>
}
IReactiveNotifyPropertyChanged~ReactiveCollectionViewSource~TSource~~ <|.. ReactiveCollectionViewSource~T~
class IHandleObservableErrors {
    <>
}
IHandleObservableErrors <|.. ReactiveCollectionViewSource~T~
class IReactiveObject {
    <>
}
IReactiveObject <|.. ReactiveCollectionViewSource~T~
class INotifyPropertyChanged {
    <>
}
INotifyPropertyChanged <|.. ReactiveCollectionViewSource~T~
class INotifyPropertyChanging {
    <>
}
INotifyPropertyChanging <|.. ReactiveCollectionViewSource~T~
class IEnableLogger {
    <>
}
IEnableLogger <|.. ReactiveCollectionViewSource~T~

Inherits from: UICollectionViewSource

Implements: IReactiveNotifyPropertyChanged>, IHandleObservableErrors, IReactiveObject, INotifyPropertyChanged, INotifyPropertyChanging, IEnableLogger

Constructors

NameSummary
.ctorInitializes a new instance of the [ReactiveCollectionViewSource](# class.

Properties

NameSummary
DataGets or sets the data that should be displayed by this [ReactiveCollectionViewSource](# You should probably bind your view model to this...
ElementSelectedGets an IObservable that is a hook to [ItemSelected](# calls.
ChangingGets an Observable that signals before a property is about to be changed.
ChangedGets an Observable that signals after a property has changed.
ThrownExceptionsGets a observable which will fire whenever an exception would normally terminate ReactiveUI internal state.

Methods

NameSummary
GetCell
NumberOfSections
GetItemsCount
ItemSelected
ItemAtReturns the Item at the specified index path.
SuppressChangeNotificationsWhen this method is called, an object will not fire change notifications (neither traditional nor Observable notifications) until the return value is disposed.
Dispose

Events

NameSummary
PropertyChanging
PropertyChanged
Inherited members